package com.zsrd.lessons.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 考卷所包含题目以及用户所选答案
 * </p>
 *
 * @author Chen Wei
 * @since 2022-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TsExamQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String orgNo;

    /**
     * 考卷id
     */
    private Integer eid;

    /**
     * 问题id
     */
    private Long tid;

    /**
     * 用户所选答案，单选题：选项ID，多选题：选项ID逗号，判断题：选项ID
     */
    private String answer;

    /**
     * 本题是否回答正确，0错误，1正确
     */
    private Integer isRight;

    private LocalDateTime utime;

    /**
     * 用户已做题目数量
     */
    private Integer userTopicCnt;


}
